package com.ruoyi.test.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.test.mapper.InterfaceManagementMapper;
import com.ruoyi.test.domain.InterfaceManagement;
import com.ruoyi.test.service.IInterfaceManagementService;

/**
 * 接口管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-11
 */
@Service
public class InterfaceManagementServiceImpl implements IInterfaceManagementService 
{
    @Autowired
    private InterfaceManagementMapper interfaceManagementMapper;

    /**
     * 查询接口管理
     * 
     * @param id 接口管理主键
     * @return 接口管理
     */
    @Override
    public InterfaceManagement selectInterfaceManagementById(Long id)
    {
        return interfaceManagementMapper.selectInterfaceManagementById(id);
    }

    /**
     * 查询接口管理列表
     * 
     * @param interfaceManagement 接口管理
     * @return 接口管理
     */
    @Override
    public List<InterfaceManagement> selectInterfaceManagementList(InterfaceManagement interfaceManagement)
    {
        return interfaceManagementMapper.selectInterfaceManagementList(interfaceManagement);
    }

    /**
     * 新增接口管理
     * 
     * @param interfaceManagement 接口管理
     * @return 结果
     */
    @Override
    public int insertInterfaceManagement(InterfaceManagement interfaceManagement)
    {
        return interfaceManagementMapper.insertInterfaceManagement(interfaceManagement);
    }

    /**
     * 修改接口管理
     * 
     * @param interfaceManagement 接口管理
     * @return 结果
     */
    @Override
    public int updateInterfaceManagement(InterfaceManagement interfaceManagement)
    {
        return interfaceManagementMapper.updateInterfaceManagement(interfaceManagement);
    }

    /**
     * 批量删除接口管理
     * 
     * @param ids 需要删除的接口管理主键
     * @return 结果
     */
    @Override
    public int deleteInterfaceManagementByIds(Long[] ids)
    {
        return interfaceManagementMapper.deleteInterfaceManagementByIds(ids);
    }

    /**
     * 删除接口管理信息
     * 
     * @param id 接口管理主键
     * @return 结果
     */
    @Override
    public int deleteInterfaceManagementById(Long id)
    {
        return interfaceManagementMapper.deleteInterfaceManagementById(id);
    }
}
